import { request } from '@/utils/request';
import type { shopListResult } from '@/api/model/shopListModel';
import axios from 'axios';

const Api = {
  base:'http://localhost:5555',
  BaseList: '/banner',
  CardList: '/get-card-list',
  imgUrl:'/banner/change',
  delete:'/banner/delect'
};

export function getShopList() {
  return axios.get<shopListResult>(Api.base+Api.BaseList);
}

export function changeImgUrl(id,img) {
  return axios.get<shopListResult>(Api.base+Api.imgUrl+`?img=${img}&id=${id}`);
}

export function deleteImgUrl(id) {
  return axios.get<shopListResult>(Api.base+Api.delete+`?id=${id}`);
}

